<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人中心</title>
<link type="text/css" rel="stylesheet" href="{$css_path}/css.css"/>
<link type="text/css" rel="stylesheet" href="{$css_path}/global.css"/>
<link rel="stylesheet" href="{$css_path}/powerFloat.css" type="text/css" />
</head>
<body>
{include file="header.html"}
<div id="wrapper">
  <div id="content">
    <div id="con_le">{include file="user_nav.html"} 
    </div>
    <!--con_le over-->
    <div id="con_box">
      <div class="Current">{$position}</div>
      <div class="con_top"> {include file="user_common_detail.html"}
        <div class="clear"></div>
      </div>
      <div id="user_content"> {include file="message.html"}
        <form name="myform" action="{$site_url}user/base/contact" method="post" id="myform">
          <fieldset>
            <legend>修改密码</legend>
            <table width="100%" class="table_form">
              <tr class='q_title'>
                <th>旧的登录密码：</th>
                <td class='input'><input  id='oldpassword' class='text small' type='password' name='oldpassword' style="width:200px"/></td>
              </tr>
              <tr class='q_title'>
                <th>新密码：</th>
                <td class='input'><input  id='password' class='text small' type='password' name='password' style="width:200px"/></td>
              </tr>
              <tr class='q_title'>
                <th>再次输入：</th>
                <td class='input'><input  id='confim_password' class='text small' type='password' name='confim_password' style="width:200px"/></td>
              </tr>
              <tr align="center">
                <td colspan="2" style="text-align:center"><input type="submit" class="button-blue" value="提 交"></td>
              </tr>
            </table>
          </fieldset>
        </form>
      </div>
    </div>
    <!--con_box over-->
    <div class="clear"></div>
  </div>
  <!--content over--> 
</div>
{include file="footer.html"}
{include file="hidden_div.html"} 
<script type="text/javascript" src="{$js_path}/jquery.js"></script> 
<script type="text/javascript" src="{$js_path}/jquery-powerFloat.js"></script> 
<script type="text/javascript" src="{$js_path}/jquery.pngfix.js"></script> 
<script type="text/javascript" src="{$js_path}/scrolltopcontrol.js"></script> 
<script type="text/javascript" src="{$js_path}/myfloat.js"></script> 
<script type="text/javascript" src="{$js_path}/jquery.validate.js"></script> 
<script type="text/javascript" src="{$js_path}/message.js"></script> 
<script type="text/javascript" src="{$js_path}/user.js"></script> 
<script>
$(function(){

	//验证用户输入
	 $(function(){
		$("#myform").validate({
                    rules: {
                        password: {
                            required: true,
                            minlength: 6,
                            maxlength:20
                        },
                        confim_password: {
                            required: true,
                            minlength: 6,
                            maxlength:20,
                            equalTo: "#password"
                        },
                        oldpassword: {
                            required: true,
                            minlength: 6,
                            maxlength:20
                        }
                    },
                    messages: {
                        password: {
                            required: "*密码不能为空!",
                            minlength: "*必须大于6位小于20位!",
                            maxlength: "*必须大于6位小于20位!"
                        },
                        confim_password: {
                            required: "*密码确认不能为空",
                            minlength: "*必须大于6位小于20位!",
                            maxlength: "*必须大于6位小于20位!",
                            equalTo: "*和密码不一致!"
                        },
                        oldpassword: {
                            required: "*密码确认不能为空",
                            minlength: "*必须大于6位小于20位!",
                            maxlength: "*必须大于6位小于20位!",
                            equalTo: "*和密码不一致!"
                        }
                    }
                });
	})
});
</script>
</body>
</html>
